home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / tsbat30.zip / setcom.bat < prev    next >
DOS Batch File  |  1991-11-09  |  786b  |  31 lines

  1. echo off
  2. echo Relocate the command interpreter
  3. echo By Prof. Timo Salmi, ts@chyde.uwasa.fi, Sat 9-Nov-1991
  4. echo.
  5.  
  6. rem The idea of this simple batch is to show how you can alter
  7. rem the location of your command interpreter. On my system r: is
  8. rem the ramdisk. This can be useful e.g. if you handle floppy disks
  9. rem which do not have the system files on them.
  10.  
  11.  
  12. if not exist r:\nul goto _no_r
  13. if not exist c:\command.com goto _no_com
  14. if not exist r:\cmand\nul md r:\cmand
  15.  
  16. copy c:\command.com r:\cmand\command.com
  17. set comspec=r:\cmand\command.com
  18. attrib +r r:\cmand\command.com
  19. goto _out
  20.  
  21. :_no_r
  22. echo Drive R: not available, adjust the batch a conform with your configiration.
  23. goto _out
  24.  
  25. :_no_com
  26. echo File COMMAND.COM not found.
  27. goto _out
  28.  
  29. :_out
  30. echo on
  31.